package org.gd.hellojson.jackson.serializers;

import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.impl.ReaderBasedParser;
import org.codehaus.jackson.map.DeserializationContext;
import org.codehaus.jackson.map.JsonDeserializer;

import java.io.IOException;

/**
 * @author Gorhover
 * @version 1.0-SNAPSHOT
 * @since 2013-09-26 10:51
 */
public class ObjectJsonDeserializer extends JsonDeserializer<Object> {

    @Override
    public Object deserialize(JsonParser jp, DeserializationContext ctxt)
            throws IOException {
        ReaderBasedParser parser = (ReaderBasedParser) jp;
        System.out.println(parser.getCodec());



        return null;
    }
}
